package my.mybatis.common.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import my.mybatis.common.response.base.Result;

import java.io.Serializable;
import java.util.Map;

/**
 * @Author:wangbin.
 * @Description.
 * @Date:Created in 18:32 2017/9/18.
 * @Modified By:
 */
@ApiModel(value = "PageResult", description = "分页数据格式结果集")
public class PageResult extends Result implements Serializable{

    private static final long serialVersionUID = 2662925716282970203L;
    // key : list  映射分页列表数据结果集
    // key : page  映射分页信息
    @ApiModelProperty(value = "分页列表数据结果集和分页信息")
    private Map<String,Object> data;

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }
}
